﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLBH.Model.Controller;
using QLBH.DataModel;
using QLBH.ModelInterface;

namespace QLBH.Category.Presenter
{
    public class QLNCCPresenter
    {
        public QLNCCPresenter()
        {

        }
        public List<IQLNCCModel> GetDSNCC()
        {
            List<IQLNCCModel> result = new List<IQLNCCModel>();
            var items = NCCController.GetInstance().GetAll();

            foreach (NHACUNGCAP ncc in items)
            {
                IQLNCCModel model = ModelFactory.ModelFactory.GetQLNCCModelInstance();
                model.InitFromEntity(ncc);
                result.Add(model);
            }
            return result;
        }
    }
}
